<div class="row">
        <div class="input-field col s12">
            <input id="keyword" type="text" class="validate" ng-model="keyword"/>
            <label for="keyword">
                检索
                (可供检索的信息有姓名、班级、学校和电话等)
            </label>
        </div>
    </div>
    
    <div class="row center">
        <button id="search" class="btn" ng-click="search()">GO</button>
        <a href="#!/stuadd" class="btn" >添加学生</a>
    </div>
    
    <div class="row">
        <div class="col s6 m4 card hoverable" ng-repeat="student in studentList">
            <div class="card-content" ng-switch on="student.course">
                <span class="card-title" ng-switch-when="Java">
                    {{student.name}}
                    <span class="right new badge green" data-badge-caption="">{{student.class_name}}</span>
                </span>               
                <span class="card-title" ng-switch-when="UI">
                    {{student.name}}
                    <span class="right new badge blue" data-badge-caption="">{{student.class_name}}</span>
                </span>
                <ul>
                    <li class="truncate">性别：{{student.gender}}</li>
                    <li class="truncate">学校：{{student.school}}</li>
                    <li class="truncate">专业：{{student.major}}</li>
                    <li class="truncate">电话：{{student.phone}}</li>
                </ul>
            </div>
            <div class="card-action">
                <a href="#!/student/{{student.id}}">链接</a>
            </div>
        </div>
    </div>
    
